Socket
Socket
Sign inDemoInstall

hash-sum

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hash-sum

Blazing fast unique hash generator


Version published
Weekly downloads
4.4M
decreased by-3.25%
Maintainers
1
Weekly downloads
 
Created

What is hash-sum?

The hash-sum npm package is used to create hash digests of JavaScript objects, arrays, strings, and other serializable values. It is a fast and dependency-free hashing function that generates a hex-encoded hash.

What are hash-sum's main functionalities?

Hashing strings

This feature allows you to create a hash from a string. The hash is deterministic, meaning the same string will always result in the same hash.

"hashSum('Hello, World!')"

Hashing objects

You can hash JavaScript objects, which is useful for checking if objects have changed or for using objects as keys in caching mechanisms.

"hashSum({ key: 'value' })"

Hashing arrays

Arrays can also be hashed, which is helpful for creating unique identifiers for sets of items or for caching purposes.

"hashSum(['one', 'two', 'three'])"

Hashing other serializable values

The package can hash other serializable values such as numbers, ensuring a wide range of data types can be hashed.

"hashSum(12345)"

Other packages similar to hash-sum

FAQs

Package last updated on 14 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc